package com.ruoyi.dr.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysMenu;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 归属信息对象 dr_owner_union
 * 
 * @author ruoyi
 * @date 2025-07-14
 */
public class DrOwnerUnion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 抖音号 */
    @Excel(name = "达人号")
    private String awemeId;

    /** 达人 */
    @Excel(name = "达人")
    private String awemeName;

    /** 归属人 */
    @Excel(name = "归属人")
    private String owner;

    /** 归属时间 */
    @JsonFormat(pattern = "yyyy.MM.dd")
    @Excel(name = "归属日期", width = 30, dateFormat = "yyyy.MM.dd")
    private Date ownerTime;

    /** 归属团 */
    @Excel(name = "归属团")
    private String tzOwner;

    /** 父级id */
    @Excel(name = "父级id")
    private Long parentId;


    /** 子菜单 */
    private List<DrOwnerUnion> children = new ArrayList<>();

    public String getAwemeName() {
        return awemeName;
    }

    public void setAwemeName(String awemeName) {
        this.awemeName = awemeName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAwemeId(String awemeId) 
    {
        this.awemeId = awemeId;
    }

    public String getAwemeId() 
    {
        return awemeId;
    }

    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }

    public void setOwnerTime(Date ownerTime) 
    {
        this.ownerTime = ownerTime;
    }

    public Date getOwnerTime() 
    {
        return ownerTime;
    }

    public void setTzOwner(String tzOwner)
    {
        this.tzOwner = tzOwner;
    }

    public String getTzOwner()
    {
        return tzOwner;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public List<DrOwnerUnion> getChildren() {
        return children;
    }

    public void setChildren(List<DrOwnerUnion> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("awemeId", getAwemeId())
            .append("owner", getOwner())
            .append("ownerTime", getOwnerTime())
            .append("tzOwner", getTzOwner())
            .append("parentId", getParentId())
            .toString();
    }
}
